package com.engine4cloud.tdf.supervision.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.supervision.dto.create.JzdxFamilySocietyCreateDTO;
import com.engine4cloud.tdf.supervision.dto.query.JzdxFamilySocietyQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxFamilySocietyResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.JzdxFamilySocietyUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.JzdxFamilySocietyEntity;

import java.util.List;

public interface JzdxFamilySocietyService extends IService<JzdxFamilySocietyEntity> {

    PageInfo<JzdxFamilySocietyResultDTO> pageList(Params page, JzdxFamilySocietyQueryDTO dto);

    List<JzdxFamilySocietyResultDTO> findList(JzdxFamilySocietyQueryDTO dto);

    JzdxFamilySocietyResultDTO getById(Long id);

    Boolean create(JzdxFamilySocietyCreateDTO dto);

    Boolean update(JzdxFamilySocietyUpdateDTO dto);

    void createBatch(String code, List<JzdxFamilySocietyEntity> familySocietyEntityList);

    Boolean updateBatch(String code, List<JzdxFamilySocietyEntity> familySocietyEntityList);

    List<JzdxFamilySocietyEntity> findByCode(String code);
}